immodule: Stop gcc from complaining
authorBenjamin Otte <otte@gnome.org>
Sat, 6 Feb 2016 02:38:37 +0000 (03:38 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Feb 2016 02:44:47 +0000 (03:44 +0100)
gtk/gtkimmodule.c

index 97021da3f2566892b6ebbeeeaef2456fd2db1f68..065d5ba3e895236e6052a530122730aa0cf76dc7 100644 (file)
@@ -899,7 +899,7 @@ get_current_input_language (void)
   /* Current thread's keyboard layout */
   kblayout = GetKeyboardLayout(0);
   /* lowest word in the HKL is the LANGID */
-  langid = ((guint32)kblayout) & 0xFFFF;
+  langid = LOWORD (kblayout);
   /* LCID is the LANGID without order */
   lcid = langid;